<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/6/26
 * Time: 15:00
 */
namespace app\api\validate;

use think\Validate;

class Cart extends Validate{
    protected $rule = [
        'img_url' => 'require',
        'title' => 'require',
        'current_price' => 'require',
        'original_price' => 'require',
        'number' => 'require'
    ];
    protected $message  =   [
        'img_url.require'       => '照片不能为空',
        'title.require'         => '标题不能为空',
        'current_price.require' => '现价不能为空',
        'original_price.require'=> '原价不能为空',
        'number.require'        => '数量不能为空'
    ];
}